package com.orange.handler.impl;

import java.sql.SQLException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.AuthRectificationReportService;
import com.orange.modules.dao.AuthRectificationReportRepository;
import com.orange.modules.entity.AuthRectificationReport;

@Service
public class AuthRectificationReportServiceImpl implements
		AuthRectificationReportService {

	@Autowired
	private AuthRectificationReportRepository authRectificationReportRepository;
	
	@Override
	public AuthRectificationReport findRectificationReportBySchoolId(String sid)
			throws SQLException {
		AuthRectificationReport rr = authRectificationReportRepository.findRectificationReportBySchoolId(sid);
		return rr;
	}

	@Override
	public void saveRectificationReport(AuthRectificationReport rr) {
		authRectificationReportRepository.saveRectificationReport(rr);

	}

	@Override
	public void deleteRectificationReport(String pid) {
		authRectificationReportRepository.deleteRectificationReport(pid);

	}

	@Override
	public AuthRectificationReport findOne(String pid) {
		AuthRectificationReport rr = authRectificationReportRepository.findOne(pid);
		return rr;
	}

	@Override
	public Page<AuthRectificationReport> queryAllReport(Map<String, String> map) throws SQLException {
		Page<AuthRectificationReport> page = authRectificationReportRepository.queryAllReport( map);
		return page;
	}
}
